@cd /d %~dp0
@set SWG_INPUT=http://localhost:7005/swagger/v1/swagger.json
@set SWG_NAMESPACE=TeBigCoreApi
@set SWG_CLASS_BASE=TeBigCoreServiceBase
@set SWG_CLASS=TeBigCoreService
@set SWG_OUTPUT=TeBigCoreApi.cs
@set SWG_OPTIONS=
::dotnet tool install --global NSwag.ConsoleCore
nswag openapi2csclient %SWG_OPTIONS% ^
/input:%SWG_INPUT% ^
/classname:%SWG_CLASS%{controller} ^
/namespace:%SWG_NAMESPACE% ^
/output:%SWG_OUTPUT% ^
/DateType:System.DateTime ^
/DateTimeType:System.DateTime ^
/ArrayType:System.Collections.ObjectModel.ObservableCollection ^
/UseHttpClientCreationMethod:true ^
/OperationGenerationMode:MultipleClientsFromPathSegments
pause